package com.example.common.constant;

import io.swagger.annotations.Api;

@Api(value = "系统常量", tags = {"系统常量"})
public class SystemConstant {
    /**
     * log日志跳过的方法
     */
    public static final String[] PASS_METHOD = {"asideMenus"};
    /**
     * 不输出参数以及不记录参数
     */
    public static final String[] NOT_OUTPUT_AND_RECORD = {"/login/"};
    /**
     * 最小account 十亿
     */
    public static final Integer BILLION = 1000000000;
    /**
     * 拦截器白名单
     */
    public static final String[] INTERCEPTORS = {"/code/", "/login/", "/login/register"};
    /**
     * 账号状态-正常激活
     */
    public static final String USER_STATUS_NORMAL = "正常";
    /**
     * 账号状态-禁止使用
     */
    public static final String USER_STATUS_DISABLE = "禁用";
    /**
     * 账号状态-暂时禁止
     */
    public static final String USER_STATUS_TEMPORARILY_DISABLE = "TEMPORARILY_DISABLE";
    /**
     * 账号密码最大错误次数
     */
    public static final Integer PASSWORD_MAX_ERROR_NUM = 5;
    /**
     * 账号密码最大错误次数记录时间
     * 10分钟
     */
    public static final long PASSWORD_MAX_ERROR_NUM_TIME = 60 * 10;
    /**
     * 项目实体所在位置
     */
    public static final String DOMAIN_PATH = "com.example.system.domain";
    /**
     * 新增用户默认头像ID
     */
    public static final int IMAGE_ID = 1;
    /**
     * 好友关系-正常
     */
    public static final int FRIEND_STATUS_NORMAL = 2;
    /**
     * 本地基地址
     */
    public static final String SRPPMS = "C:\\srppms\\";
    /**
     * 本地保存文件基地址
     */
    public static final String UPLOAD = SRPPMS + "upload\\";
    /**
     * 本地图片保存地址
     */
    public static final String IMAGE_UPLOAD = UPLOAD + "image\\";
    /**
     * 附件下载地址
     */
    public static final String FILE_UPLOAD = UPLOAD + "file\\";
    /**
     * 返回结果最大长度
     */
    public static final Integer RESULT_MAX_LEN = 4194304;
    /**
     * 接口所在位置
     */
    public static final String CONTROLLER_PATH = "com.example.web.controller";
    /**
     * 特殊字符
     */
    public static final String SPECIAL_CHAR = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
}
